import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: ()=> import('../components/pages/Layout.vue'),
      children: [{
        path: 'index',
        name: '首页',
        component: () => import('../components/pages/Index.vue')
      },{
        path: 'user',
        name: '用户',
        component: () => import('../components/pages/User.vue')
      },{
        path: 'A',
        name: 'A页面管理',
        component: () => import('../components/pages/APage.vue')
      }]
    }
  ]
})
